import request from "@/api/index.js"

// 获取用户信息
export function getUserInfoApi(userId) {
	return request({
		url: "/user/full/" + userId,
		method: "get"
	})
}

// 获取用户文章
export function getUserCommunityApi(pageNumber, userId) {
	return request({
		url: `/user/userInfo?uid=${userId}&judge=1&page=${pageNumber}`,
		method: "get"
	})
}

// 获取商品文章
export function getUserGoodsApi(pageNumber, userId) {
	return request({
		url: `/user/userInfo?uid=${userId}&judge=0&page=${pageNumber}`,
		method: "get"
	})
}


// 获取用户认证
export function strInfo() {
	return request({
		url: `/user/strInfo`,
		method: "get"
	})
}